package deng.camel.examples;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
 * Hello bean that greet name to a print stream.
 * 
 * @author Zemian Deng
 *
 */
public class Hello {
	
	private static Log logger = LogFactory.getLog(Hello.class);

	protected String name;

	public Hello() {
	}

	public void setName(String name) {
		this.name = name;
	}

	public void create() {
		if (name == null) {
			name = "World";
		}
	}
	
	public void start() {
		logger.info("Hello " + name);
	}

}
